import request from '@/utils/request'

// 查询工单处理记录列表
export function listWorkOrderAction(query) {
  return request({
    url: '/system/workOrderAction/list',
    method: 'get',
    params: query
  })
}

// 查询工单处理记录详细
export function getWorkOrderAction(id) {
  return request({
    url: '/system/workOrderAction/' + id,
    method: 'get'
  })
}

// 新增工单处理记录
export function addWorkOrderAction(data) {
  return request({
    url: '/system/workOrderAction',
    method: 'post',
    data: data
  })
}

// 修改工单处理记录
export function updateWorkOrderAction(data) {
  return request({
    url: '/system/workOrderAction',
    method: 'put',
    data: data
  })
}

// 删除工单处理记录
export function delWorkOrderAction(id) {
  return request({
    url: '/system/workOrderAction/' + id,
    method: 'delete'
  })
}
